FROM node:18.19.1

WORKDIR /app

COPY . .

RUN npm i -g pnpm --registry=https://registry.npmmirror.com

RUN pnpm install --registry=https://registry.npmmirror.com

RUN npm run compile

ENV DOCKER=true

CMD [ "node", "./production.js" ]